#ifndef ADDCONTACTWINDOW_H
#define ADDCONTACTWINDOW_H

#include <QDialog>
#include <QComboBox>
#include <QLineEdit>
#include <QPushButton>
#include "Contact.h"
class NetworkPlugin;

class AddContactWindow : public QDialog
{
    Q_OBJECT

    public:
        AddContactWindow(QList<NetworkPlugin*>* _networkPluginList, QWidget* parent=0);
    public slots:
        bool tryAddContact();
        void cancelFunction();

    signals:
        void addCreatedContact(Contact* contact);

    private:
        QLineEdit* name;
        QLineEdit* surname;
        QComboBox* network;
        QLineEdit* id;
        QPushButton* add;
        QPushButton* cancel;
        QList<NetworkPlugin*> * networkPluginList;


};



#endif // ADDCONTACTWINDOW_H
